import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    // component: ScreenPage
    component: ()=>import('@/views/ScreenPage.vue')
  },
  {
    path: '/SellerPage',
    component: ()=>import('@/views/SellerPage.vue')
  },
  {
    path: '/TrendPage',
    component: ()=>import('@/views/TrendPage.vue')
  },
  {
    path: '/MapPage',
    component: ()=>import('@/views/MapPage.vue')
  },
  {
    path: '/RankPage',
    component: ()=>import('@/views/RankPage.vue')
  },
  {
    path: '/HotPage',
    component: ()=>import('@/views/HotPage.vue')
  },
  {
    path: '/StockPage',
    component: ()=>import('@/views/StockPage.vue')
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
